﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace ScrumTracker.Models
{
    [MetadataType(typeof(TaskMetadata))]
    public partial class Task
    {
        [Display(Name="Assignee Name")]
        public string AssigneeName
        {
            get
            {
                if (Assignee != null)
                {
                    return Assignee.FullName;
                }
                else
                {
                    return "Unassigned";
                }
            }
        }
    }
}